<?php
	include_once '../dao/Gallery_DAO.php';
	
	class Gallery_Service{
		public function __construct(){
			
		}
		
		public function getList_Gallery($id,$offset=null, $limit=null){
			$dao = new Gallery_DAO();
			return  $dao->getList_Gallery($id,$offset, $limit);
		}
                public function getGallery_Detail($id){
			$dao = new Gallery_DAO();
			return  $dao->getGallery_Detail($id);
		}
                public function getFirst_Gallery($id){
			$dao = new Gallery_DAO();
			return  $dao->getFirst_Gallery($id);
		}
		public function insert_Gallery($img,$des,$id){
			$dao = new Gallery_DAO();
			$dao->insert_Gallery($img,$des,$id);
		}
                public function update_Gallery($id, $des){
			$dao = new Gallery_DAO();
			$dao->update_Gallery($id, $des);
		}
		public function delete_Gallery($id){
			$dao = new Gallery_DAO();
			$dao->delete_Gallery($id);
		}
	}
?>